import Vue from 'vue';
import {
  Dialog, Swipe, SwipeItem, Form, Field, CellGroup, Button, Toast,
} from 'vant';
import 'vant/lib/index.css';
import App from './App.vue';
import router from './router';
import store from './store';

Vue.use(Dialog);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Form);
Vue.use(Field);
Vue.use(CellGroup);
Vue.use(Button);
Vue.use(Toast);

const app = new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app');

export default app;
